home *** CD-ROM | disk | FTP | other *** search
/ HaCKeRz Kr0nlcKLeZ 1 / HaCKeRz Kr0nlcKLeZ.iso / chibacity / gbbdisk.arj / PROTMODE / PM_DEFS.ASM < prev    next >
Encoding:
Assembly Source File  |  1993-07-16  |  2.1 KB  |  42 lines

  1. ;*******************************************************************************
  2. ;* This module contains standard definitions of protected-mode constants.      *
  3. ;*******************************************************************************
  4.  
  5. ;For use in V86.ASM, etc.
  6.  
  7. ;(C) 1993 American Eagle Publications, Inc., All rights reserved!
  8.  
  9.  
  10.  
  11. IDT_Entries     EQU     256
  12. TSS_Size        EQU     104
  13.  
  14. RPL0            EQU     0               ;Requestor privilege levels
  15. RPL1            EQU     1
  16. RPL2            EQU     2
  17. RPL3            EQU     3
  18.  
  19. ;GDT attriblute definitions
  20. GRANULAR_4K     EQU     10000000B               ;4K granularity indicator
  21. DEFAULT_386     EQU     01000000B               ;80386 segment defaults
  22.  
  23. PRESENT         EQU     10000000B               ;Descriptor present bit
  24. DPL_0           EQU     00000000B               ;Descriptor privilege level 0
  25. DPL_1           EQU     00100000B               ;Descriptor privilege level 1
  26. DPL_2           EQU     01000000B               ;Descriptor privilege level 2
  27. DPL_3           EQU     01100000B               ;Descriptor privilege level 3
  28. DTYPE_MEMORY    EQU     00010000B               ;Memory type descriptor
  29. TYP_READ_ONLY   EQU     0                       ;Read only segment type
  30. TYP_READ_WRITE  EQU     2                       ;Read/Write segment type
  31. TYP_RO_ED       EQU     4                       ;Read only/Expand down segment type
  32. TYP_RW_ED       EQU     6                       ;Read/Write Expand down segment type
  33. TYP_EXEC        EQU     8                       ;Executable segment type
  34. TYP_TASK        EQU     9                       ;TSS segment type
  35. TYP_EXEC_READ   EQU     10                      ;Execute/Read segment type
  36. TYP_EXEC_CONF   EQU     12                      ;Execute only conforming segment type
  37. TYP_EXRD_CONF   EQU     14                      ;Execute/Read conforming segment type
  38. TRAP_GATE       EQU     00001111B               ;Trap gate descriptor mask, 16 bit
  39. INTERRUPT_GATE  EQU     00001110B               ;Interrupt gate descriptor mask, 16 bit
  40.  
  41. TYPE_32         EQU     01000000B               ;32 Bit segment type
  42.